#include "resultwidget.h"
#include "ui_resultwidget.h"

resultWidget::resultWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::resultWidget)
{
    ui->setupUi(this);
	connect(ui->endButton, SIGNAL(clicked()), this, SIGNAL(returnMenu()));
}

resultWidget::~resultWidget()
{
    delete ui;
}

void resultWidget::setScore(int score) {
	ui->scoreLabel->setText(QString::number(score));
}

void resultWidget::setPurpose(QString purpose) {
	ui->purposeLabel->setText(purpose);
}
